﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Cs2102BookingSystem.Models.FACILITIES>>" %>

<script runat="server">
    
    
    int _noResultFound = 0;
    public void Page_Load()
    {
        _noResultFound = Int32.Parse(ViewData["noResultFound"].ToString()); ;
    }
  
</script>
<style type="text/css">
    .style1
    {
        width: 1064px;
        margin-left: 91px;
    }
    .style3
    {
        width: 262px;
    }
    .style6
    {
        width: 164px;
    }
    .style7
    {
        width: 210px;
    }
    .style8
    {
        height: 37px;
    }
    .style9
    {
        width: 164px;
        height: 48px;
    }
    .style10
    {
        width: 262px;
        height: 48px;
    }
    .style11
    {
        width: 210px;
        height: 48px;
    }
    .style13
    {
        margin-left: 563px;
    }
</style>

<fieldset>
    <div class="style8">
    



    <h2><%:_noResultFound %> Results Found</h2>

    
    </div>
    
    

    <asp:panel id="ResultPanel" runat="server" visible="true">
    <table class="style1" style="border-color:transparent;width:80%;border-collapse:separate;border-spacing:0px;margin: auto; border:5px;border-top-width:50px" >
        <tr style="  text-align:left;text-indent:5px;background-color:Navy;color:White ">
           
            <th class="style9" style="border:20px; border-top-width:30px">
                Country
            </th>
            <th class="style10" style="border:20px; border-top-width:30px">
                Hotel
            </th>
            <th class="style11" style="border:20px; border-top-width:30px">
                Branch</th>
             <th class="style11" style="border:20px; border-top-width:30px">
                Facilities</th>
            
          
        </tr>
      
</fieldset>

    <% foreach (var item in Model) { %>
    
        <tr style="  border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:Gray;text-align:left;text-indent:20px;line-height:20px">
          
            <td class="style6" style="  border-style:groove;border-bottom-width:1px;border-bottom-color:Gray;text-align:left;text-indent:5px;line-height:20px" >
                <%: item.H_COUNTRY%> 
            </td>
            <td class="style3" style="  border-style:groove;border-bottom-width:1px;border-bottom-color:Gray;text-align:left;text-indent:5px;line-height:20px">
                <%: Html.ActionLink(item.H_NAME, "ViewDetails", new
                    {
                        hotelName = item.H_NAME,
                        branchName = item.H_BRANCHNAME,
                        country = item.H_COUNTRY
                    })%>
            </td>
            <td class="style7" style="  border-style:groove;border-bottom-width:1px;border-bottom-color:Gray;text-align:left;text-indent:5px;line-height:20px">
                <%: item.H_BRANCHNAME %>
            </td>
             <td class="style7" style="  border-style:groove;border-bottom-width:1px;border-bottom-color:Gray;text-align:left;text-indent:5px;line-height:20px">
                <%: item.FACILITY %>
            </td>
            
           
        </tr>
    
    <% } %>

    </table>
    </asp:panel>